package com.yuntai.pms.model.vo;

/**
 * ResultMessage.java
 * @author wangze@hsyuntai.com
 * @description 返回数据格式
 */
public class ResultMessage {

    private boolean result;
    private String  message;
    private Object  content;
    private String  code;
    private String  errorMessage;

    public ResultMessage() {
    }

    public ResultMessage(boolean result, String message) {
        this.result = result;
        this.message = message;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getContent() {
        return content;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    public ResultMessage change(boolean result, String message) {
        this.result = result;
        this.message = message;
        return this;
    }
}
